

interface State{
    token:string
}

export default {
    namespaced:true,
    state:()=>{
        token:"这是token"
    },
    getters:{},
    mutations:{
        setToken(state:State,payload:string){
            state.token = payload;
        }
    },
}